package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.util.Date;
import java.util.List;

/**
 *  专题包
*@program: YmSubjectPackage
*@author: Administrator
*@create: 2018-07-19 16:11
*/
public class YmSubjectPackage {
    /**
     * 专题包id
     */
    private Long subjectPackageId;
    /**
     * 专题包名
     */
    private String subjectPackageName;
    /**
     * 专题包描述
     */
    private String subjectPackageDse;
    /**
     *  创建时间
     */
    private Date createTime;

    /**
     * 创建时间 yyyy-MM-dd
     */
    private String strCreateTime;
    /**
     *更新时间
     */
    private Date updateTime;
    /**
     * 更新时间 yyyy-MM-dd
     */
    private String strUpdateTime;
    /***
     * 状态
     */
    private Short state;
    /**
     * 专题封面图
     */
    private String subjectPackageCoverUrl;
    /**
     * 专题包所属文章
     */
    private  List<YmArticle> childYmArticles;

    public List<YmArticle> getChildYmArticles() {
        return childYmArticles;
    }

    public YmSubjectPackage setChildYmArticles(List<YmArticle> childYmArticles) {
        this.childYmArticles = childYmArticles;
        return this;
    }

    public String getSubjectPackageCoverUrl() {
        return subjectPackageCoverUrl;
    }

    public YmSubjectPackage setSubjectPackageCoverUrl(String subjectPackageCoverUrl) {
        this.subjectPackageCoverUrl = subjectPackageCoverUrl;
        return this;
    }

    public Long getSubjectPackageId() {
        return subjectPackageId;
    }

    public void setSubjectPackageId(Long subjectPackageId) {
        this.subjectPackageId = subjectPackageId;
    }

    public String getSubjectPackageName() {
        return subjectPackageName;
    }

    public void setSubjectPackageName(String subjectPackageName) {
        this.subjectPackageName = subjectPackageName == null ? null : subjectPackageName.trim();
    }

    public String getSubjectPackageDse() {
        return subjectPackageDse;
    }

    public void setSubjectPackageDse(String subjectPackageDse) {
        this.subjectPackageDse = subjectPackageDse == null ? null : subjectPackageDse.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.strCreateTime=new DateTime(createTime).toString("yyyy-MM-dd hh:mm:ss");
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.strUpdateTime=new DateTime(updateTime).toString("yyyy-MM-dd hh:mm:ss");
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }
}